package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.PurchaseOrder;
import com.sansan.qiangji.entity.warehouse.example.PurchaseOrderExample;
import com.sansan.qiangji.mapper.warehouse.PurchaseOrderMapper;
import com.sansan.qiangji.service.inter.warehouse.PurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PurchaseOrderServiceImpl implements PurchaseOrderService {

    @Autowired
    private PurchaseOrderMapper purchaseOrderMapper;

    @Override
    public long countByExample(PurchaseOrderExample example) {
        return purchaseOrderMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PurchaseOrderExample example) {
        return purchaseOrderMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return purchaseOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PurchaseOrder record) {
        return purchaseOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(PurchaseOrder record) {
        return purchaseOrderMapper.insertSelective(record);
    }

    @Override
    public List<PurchaseOrder> selectByExample(PurchaseOrderExample example) {
        return purchaseOrderMapper.selectByExample(example);
    }

    @Override
    public PurchaseOrder selectByPrimaryKey(Integer id) {
        return purchaseOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(PurchaseOrder record, PurchaseOrderExample example) {
        return purchaseOrderMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PurchaseOrder record, PurchaseOrderExample example) {
        return purchaseOrderMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PurchaseOrder record) {
        return purchaseOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PurchaseOrder record) {
        return purchaseOrderMapper.updateByPrimaryKey(record);
    }
}
